package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Visit extends BaseEntity {
    /** 拜访记录ID */
    private Integer id;
    /** 联系人ID */
    private Integer contactId;
    /** 项目资金收集ID */
    private Integer projectFundId;
    @Excel(name = "拜访日期",dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date visitDate;
    @Excel(name = "类型",readConverterExp = "0=客户,1=代理商")
    private Integer type;
    @Excel(name = "汇报内容")
    private String content;
    @Excel(name = "合作意向")
    private String intention;

    @Excel(name = "省份")
    private String province;
    @Excel(name = "学校/公司名称")
    private String schoolOrCompanyName;
    @Excel(name = "院系/部门名称")
    private String facultyName;
    @Excel(name = "是否重点客户",readConverterExp = "0=否,1=是")
    private Integer clientIsImportant;
    @Excel(name = "重点客户依据")
    private String clientBasis;
    @Excel(name = "职务")
    private String job;
    @Excel(name = "联系人名称")
    private String contactName;
    @Excel(name = "联系电话")
    private String phone;
    @Excel(name = "是否重点联系人",readConverterExp = "0=否,1=是")
    private Integer contactIsImportant;
    @Excel(name = "重点联系人依据",dictType = "sys_key_contact_basis")
    private String contactBasis;
    @Excel(name = "项目名称")
    private String projectName;

    @Excel(name = "日常活动记录类型",dictType = "sys_activity_type" )
    private Integer activityId;

    private Date startDate;
    private Date endDate;

    private Integer delFlag;


    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 当前用户部门ID */
    private Integer deptId;
    /** 用户ID */
    private Integer userId;
    /** 用于接收该用户及夏季用户姓名（用户名）  */
    private List<String> childrenOrMine;

    /** 排序 */
    private String sort;
}
